<?php
namespace Home\Model;
use Think\Model;


class PictureinfoModel extends Model{

	/****
	选择图片信息情况
	$info查询的信息
	****/
	public function pictureinfo($info){
		if(empty($info)){
			$result=$this->limit(7)->select();
		}else{
			$result=$this->where('photourl like "%'.$info.'%"')->limit(7)->select();
		}
		// // var_dump($info);die;
		// var_dump($result);die;
		if(!empty($result)){
			$result=array('success'=>'0','data'=>$result,'msg'=>'查询成功!');
		}else{
			$result=array('success'=>'1','data'=>$result,'msg'=>'暂无信息!');
		}
		return $result;
	}
}